#include "DataStructure/Input/Constraint/TEMPDData.h"

#include "DataStructure/Common/Validation.h"
#include "DataStructure/Input/Solver/DOFDirections.h"

using namespace SG::DataStructure;

/// @brief 判断两个TEMPDData是否相等
/// @param a
/// @param b
/// @return
bool SG::DataStructure::FEM::operator== (const TEMPDData& a, const TEMPDData& b)
{
    if (a.m_sId != b.m_sId)
    {
        return false;
    }
    if (a.m_t != b.m_t)
    {
        return false;
    }

    if (a.m_domainId != b.m_domainId)
    {
        return false;
    }
    return true;
}

/// @brief 比较两个TEMPDData大小
/// @param SGDataA
/// @param SGDataB
/// @return
bool FEM::operator< (const TEMPDData& SGDataA, const TEMPDData& SGDataB)
{
    return SGDataA.m_sId < SGDataB.m_sId;
}